package com.linkhub.oms.admin.modules.shop.domain.param;

import com.linkhub.oms.admin.modules.user.domain.param.BaseUserParam;
import com.linkhub.oms.common.constant.QtRegexPool;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;
import org.hibernate.validator.constraints.Length;
import org.hibernate.validator.constraints.Range;

import javax.validation.constraints.NotNull;
import javax.validation.constraints.Pattern;
import java.io.Serializable;

/**
 * @Description: AddShopParam
 * @Author: echo
 * @Date: 2024/3/20 11:17
 * @Version: 1.0
 */
@Data
@EqualsAndHashCode(callSuper = true)
@ApiModel(value = "AddShopParam", description = "AddShopParam")
public class AddShopParam extends BaseUserParam implements Serializable {

    @ApiModelProperty(value = "平台：1-shopify；2-shipo")
    @NotNull(message = "{validation.platForm.notNull}")
    @Range(min = 1, max = 2, message = "{validation.platForm.range}")
    private Integer platForm;

    @ApiModelProperty(value = "商店名称")
    @Length(min = 1, max = 100, message = "{validation.shopName.length}")
    private String shopName;

    @ApiModelProperty(value = "商店地址")
    private String url;

    @ApiModelProperty(value = "商店logo")
    private String logoUrl;

}
